Skip to content

feat(wes): list a run's tasks from task_logs_url - #618

Open
uniqueg wants to merge 40 commits into
feat/io-schemafrom
feat/run-task-logs
Open

uniqueg wants to merge 40 commits into
feat/io-schemafrom
feat/run-task-logs

Conversation

@uniqueg

@uniqueg uniqueg commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Closes #616

This merges into the integration branch feat/io-schema (never released), where the I/O Schema integration and this work belong; it builds on #615, which has merged there. Like #613 to #615 it doesn't need the Cloud Components maintainer's review to merge into feat/io-schema; the later step from feat/io-schema into dev does.

What it does

WES 1.1 deprecates the inline task_logs of a run log and adds task_logs_url with GET /runs/{run_id}/tasks (paged). Servers that send only task_logs_url (e.g. Conquest) showed no tasks in ecc-client-ga4gh-wes-run.

  • Provider (WesProvider): optional listRunTasks(runId, pageSize?, pageToken?) and getLog(url). RestWesProvider lists tasks under its own base URL (it never follows task_logs_url, so its authorization doesn't go to another address) and fetches log URLs on its own origin through its fetch (so a subclass's Authorization header goes along), other origins without credentials, and refuses URLs that aren't HTTP(S).
  • Types: TaskLog (WES 1.1: id, system_logs, tes_uri) and TaskListResponse; RunLog.task_logs is optional and RunLog.task_logs_url added.
  • Run component: the Task Logs tab shows inline task_logs, or else the tasks listed by listRunTasks(), 50 per page, with a "Load more tasks" button; a notice if the provider can't list tasks or listing fails; each task shows name, ID, start and end time, exit code, system logs, its TES task (tes_uri, a link only if it is an HTTP(S) URL) and its logs, fetched through getLog(); log values that aren't URLs are shown as given, with a hint. Listings of a superseded run are dropped.
  • Review fixes (dda8e41): getLog() resolves a relative base URL against the page (before, every log failed behind a same-origin proxy); logs of an earlier run or task listing no longer fill the current one's cache key; "Load more tasks" lists one page at a time.
  • Sourcery fixes (e25caa8): a failed listing offers "Try again"; an empty page with a next page token still offers "Load more tasks"; a task's logs are fetched when its details are opened, not for every task of a page.
  • Behaviour change: with a provider without getLog(), log URLs are fetched without credentials (before: the browser's default, so same-origin cookies went along); documented on the Run page and in the changeset, with getLog() as the way to send credentials.
  • Merge with feat(wes): show run outputs with I/O Schema hints #615: invalidateRunLog() (from feat(wes): show run outputs with I/O Schema hints #615's stale-run-log fix) also resets the task list and cached logs, so clearing the run ID doesn't keep the previous run's tasks.
  • Docs: "Tasks" on the Run page; listRunTasks(), getLog(), TaskLog, TaskListResponse and the changed RunLog on the Providers page; changeset (minor).

How it was verified

  • WES package (npm test in packages/ecc-client-ga4gh-wes): all tests pass in Chromium and Firefox at e25caa8 (686 tests, 19 files), including the provider (listRunTasks URL and paging, without page arguments, failed listing, getLog with a base URL relative to the page, getLog with and without the service's credentials, non-HTTP(S) refused) and the run view (inline tasks, paging from task_logs_url, TES URI as link or text, no listRunTasks, listing errors, logs through the provider, non-URL log values, tasks dropped when the run ID is cleared, a superseded task page and log dropped, one page per double click, retry after a failed listing, the next page after an empty one, logs fetched only for opened tasks). WebKit can't launch on the agent host, so it runs in CI only.
  • Root npm run lint (pre-commit hook: builds all packages and the docs app) passes.
  • Merge of feat(wes): show run outputs with I/O Schema hints #615's head (b692f05) into this branch: no textual conflicts; the semantic one (invalidateRunLog() and the task list) is resolved and tested (78afe0b). After feat(wes): show run outputs with I/O Schema hints #615's squash (996177e, same tree as b692f05) the merge of feat/io-schema (e9bef1a) keeps the tree unchanged.
  • Reviews: adversarial and quality at 78afe0b (fixed: above; declined: below); a second adversarial round (no findings) and a contract review at dda8e41 (fixed in the next commit: TaskLog.tags dropped, as WES 1.1 has no such field; changeset trimmed; this body no longer cites internal decision IDs).
  • Sourcery: 8 threads; 6 fixed (e25caa8), 2 answered and resolved (log URLs fetched without an allow-list; relative log values shown as text).
  • CI: see the checks of the head commit.

Declined review findings

  • RunLog.task_logs optional under a minor changeset (quality and contract, low): the package is in prerelease (2.0.0-alpha), and the changeset names the migration.
  • Custom headers can follow a same-origin redirect to another origin (adversarial, low): getLog() keeps following redirects, because log routes typically redirect to presigned storage URLs (e.g. Conquest's run-files route); browsers drop Authorization and cookies on cross-origin redirects, and the Providers page now tells subclasses that add other headers to scope them or override getLog().
  • Credentials for the whole origin, not only the WES base path (adversarial, low): the origin is the browser's own boundary for cookies and the run log comes from the service that holds the token; a path check would break log routes outside the API prefix.
  • One staleness token instead of runLogRequests and taskListings (quality, low): kept: both are bumped together on a new run log, and a comment at the call explains how they relate; merging them into one token is a refactor for the split into reviewable PRs.
  • Shared URL check for getLog() and the component's fallback (quality, low): the fallback only fetches what isProbablyUrl accepts (HTTP(S)), the same rule; a shared helper can come with the split into reviewable PRs.

🤖 Generated with Claude Code

https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk

uniqueg and others added 30 commits December 3, 2026 07:20
Bundle the GA4GH IO Schema Profile 0.3.0 (meta-schema and vocabularies,
pinned at ga4gh-io-schema 2c3dc49, the pin of #609) and check IO schemas
offline: $schema names the profile, the meta-schema passes with format
assertion, and every $ref resolves within the document. A valid schema
comes with a validator of its input values, whose errors carry JSON
Pointers, the failed keyword and a message.

The validator is @hyperjump/json-schema (no 'unsafe-eval' needed),
behind the internal IoSchemaValidator interface, so that the component
owner can swap it (open question 2 of #444).

scripts/sync-io-schema.mjs copies the profile, its conformance suite,
file-value vectors and example schemas from a checkout at the pin. The
tests run the whole conformance suite and the examples offline.

The test runner now takes the browser builds of dependencies and serves
the CommonJS dependencies of hyperjump (content-type, idn-hostname,
punycode) as modules with their named exports.

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move the URI check of run-output into a shared module
(src/io-schema/files.ts) and add the input rules of the profile: paths
only where the file reference has no `schemes`, no `..` segments (also
percent-encoded), no leading `~` or two slashes, absolute paths only
where allowed, and `schemes` narrowing the deployment's allow-list.
run-output keeps its behaviour and re-exports the shared helpers.

The tests run the profile's file-value vectors (33 cases).

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add one renderer for the profile's Markdown subset, on markdown-it:
raw HTML as escaped text, images as their alt text, links only with an
allowed scheme (else their text; they open in a new window without
referrer), and of GFM only tables, strikethrough and autolinks (www.
and bare URLs, not bare host names). It produces the profile's example
HTML exactly. Its output is the only HTML that goes through unsafeHTML.

Descriptions stay plain text by default, as the proposal's default for
open question 4 of #444: setDescriptionFormat("markdown") switches the
components to Markdown. run-output takes its descriptions from the same
template, unchanged by default.

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add ecc-client-ga4gh-wes-io-form. It checks the IO schema offline,
describes its inputs as field descriptors (schema -> descriptors ->
controls) and renders them with the design components by type, format
and enum: text, number, checkbox, select, date, time, date-time,
groups for objects and JSON for the rest. Defaults are prefilled,
unset inputs are left out, and every change emits
ecc-io-form-changed with {values, valid, errors}.

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review findings on the schema checks:

- An embedded $id that collides with a schema in use (e.g. the
  profile) is refused without unregistering that schema; the profile
  is registered again if something removed it; checks never reject.
- Documents are registered under their own absolute $id, so
  references by it resolve; embedded $ids are resolved against their
  resource, so error locations point into embedded resources.
- References in outputs and top-level $defs must resolve, too.
- Checks run one after the other (hyperjump's registry is global).

Also export the checks, the validator switch and the description
format from @elixir-cloud/wes/utils, and document them.

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Choose controls by x-ga4gh-ui-widget where the widget fits the schema
that carries it (UI widgets, Rules): textarea, slider with bounds and
step, multiple choice for arrays with items.enum, tags one per line,
typeahead with examples as suggestions, colour picker. Radio and
switch render as dropdown and checkbox, as the profile allows. Misfit,
custom and viewer widgets fall back to the type. Nullable inputs get a
null toggle.

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review findings on the form:

- A schema that refers to itself twice per level expanded to 2^33
  fields and froze the tab: references already on the path become JSON
  inputs, and groups stop expanding at 1000 fields.
- References inside embedded resources ($id) aren't followed, as they
  resolve elsewhere; such inputs are edited as JSON.
- Inputs named constructor or prototype can be set; only __proto__
  is ignored. Missing required inputs with such names show at the input.
- Control ids are unique per pointer.

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
File references (x-ga4gh-file, also as a branch of anyOf/oneOf such as
CWL's [File, string]) get a text field for a URI or relative path.
Values are checked by the profile's file rules against allowedSchemes,
narrowed by the reference's schemes, and make the form invalid when
refused; refused defaults aren't prefilled. Changing allowedSchemes
re-validates.

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
x-ga4gh-error-message replaces the validator's messages of the
failures at the value its schema applies to, once per location; the
outermost message wins (the input's own over its $ref target's).
Hidden inputs go under a collapsed Advanced section, except inputs
that must be set and inputs whose values fail.

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Arrays with items get a list editor: a field per item (objects, file
references and widgets included), Add and Remove within minItems and
maxItems; a cleared item stays in the list, empty. Unions (anyOf or
oneOf without a type) get a branch chooser, by title or type, that
renders the chosen branch; the branch is guessed from the value's type
at first. Other arrays (prefixItems) stay JSON.

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Branches of allOf with properties (after a local $ref), such as
nf-core's parameter groups, become sections of their object with the
branch's title and description; their required lists apply to their
fields, and their defaults are prefilled. The docs demo gets the
profile's nf-core/fetchngs schema.

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Quality review: aria-labels on selects, multi-selects, checkboxes and
the null toggle; list buttons name their list; suggestions form a
labelled group; the slider value is announced. Tests for the
allowed-schemes attribute and for new values. Docs: slider steps,
null toggle, required marker, attribute format.

Part of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adversarial review of S5-S9:
- File reference values are checked by walking the values along the
  inputs schema, not the controls: union branches the form doesn't
  show, tags, prefixItems, patternProperties and additionalProperties
  are covered too (high).
- allOf sections stop at the field cap (exponential nesting by $ref).
- Removing a list item moves the pointer-keyed state of later items.
- Live fields are computed once per state; errors find their field by
  pointer instead of a scan.
- A required list stays when its last item is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Second review round of the schema walk of file values:
- In a union, a string that a branch without a file reference takes
  (type, const, enum, pattern) isn't checked as a file reference, so
  presets and free text next to a file branch stay valid.
- The walk keeps the schema nodes seen per value location: linear in
  the schema size instead of exponential in branching references, with
  a node budget that fails closed.
- Refused list defaults are removed last first, so later items don't
  shift into their place.
- then/else, dependentSchemas, unevaluatedProperties/Items and contains
  are walked too.
- Values nested deeper than 64 levels are refused instead of skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port the engine bindings of the GA4GH IO Schema Profile 0.3.0 (NFL,
SMK, WDL, CWL) from the profile's reference implementation:
toWorkflowParams() and buildRunRequest() check the schema, validate the
values, check file references and translate the values; trs.ts builds
the TRS workflow URL and finds the schema among a tool version's files.

The sync script now also copies the wes-params, workflow-urls and
trs-files test vectors, which the tests run. The validator gains an
optional validateAt() for the subschemas whose validity decides which
schemas apply (anyOf/oneOf branches, if, contains).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engine profiles turn the generic run request into one for a particular
WES server, kept out of the builder. conquestEngineProfile sets the
GitHub repository as workflow_url and adds revision and the main
workflow path (main_script, snakefile or main_workflow_path) from the
URL of the primary descriptor at a full commit SHA.

Also declare SubschemaValidator and the optional validateAt() on
IoSchemaCheck, which the previous commit used without the type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With ioSchema and trsToolVersion, ecc-client-ga4gh-wes-run-create shows
the workflow's I/O form instead of the raw fields, says when the WES
service doesn't run the workflow's type or version, and submits the
request built by the engine bindings, adapted by an optional engine
profile. The raw mode stays. The I/O form is loaded on demand: a static
import broke the docs app's prerendering of the I/O form page.

Export the builder, TRS helpers and engine profile from
@elixir-cloud/wes/utils; document them; add a docs-app demo with a
dry-run provider; add a changeset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Fail closed on $ref targets in or under embedded $id resources: they
  resolve their own references against their $id, so following the
  document could skip file reference checks.
- Build workflow_params from entries, so a member named __proto__ stays
  a key.
- Tighten the Conquest URL parser: no '.' or '..' owner or repository
  names, control characters, backslashes or segments starting with '-'.
- Require engine parameters to be a JSON object in schema mode; load
  the I/O form with an error message if its chunk fails; build tags and
  attachments once.
- Test decidingLocations() and validateAt(); export fewer internals;
  document the version fallback and the error text of schema mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Wrap validateAt() failures for conditional subschemas behind a $ref
into a non-schema location in a TranslationError, and refuse Unicode
format and separator characters and whitespace-padded segments in
Conquest descriptor paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port the output normaliser of profile 0.3.0 (ga4gh_io_schema.outputs)
to TypeScript: normaliseOutputs() finds outputs by name, then by
x-ga4gh-output-glob in the run's listing (cwltool, Toil, Cromwell,
miniwdl, Conquest, Sapporo, WESkit shapes), turns reported paths into
URIs of the output directory, checks listed entries, validates the
result (whole object for COMPLETE, per output otherwise) and reports
removed, ambiguous, unconverted, undeclared, unmatched and skipped
entries.

The validator gets an optional validateOutputs(). The sync script
copies the wes-outputs vectors (same pin, 2c3dc49); all pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ecc-client-ga4gh-wes-run gains ioSchema, outputOptions, outputProvider
and allowedSchemes. With a schema and a run that has ended, the Outputs
tab shows the normalised outputs through
ecc-client-ga4gh-wes-run-output, warns about partial and non-conformant
outputs, names what the normaliser reports, and shows undeclared
outputs and unmatched files without descriptions. Without a schema the
raw view stays. The normaliser and run-output load on demand.

Docs: Run outputs on the I/O Schemas page, the run page's new section
and properties, a docs-app demo of the profile's demo workflow, and a
changeset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- validateOutputs validates one output as the only member of the
  outputs object, so names with '#' no longer break checkIoSchema, and
  no extra subschemas are compiled
- the run view passes the default allowed schemes when none are set,
  and resolves $ref and single branches of output schemas for display
- values nested more than 64 levels are refused (unconverted) instead
  of overflowing the validator's stack; strings() is iterative
- reuse encodeSegment from trs.ts; export outputProperties and
  displaySchema; FINAL_STATES from states.ts only
- tests for validateOutputs, deep values, display schemas; docs on
  memoising outputOptions, running runs, embedded $id, the validator
  contract in the changeset

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Values nested too deeply land in unconverted too, so the notice no
longer says their files can't be located.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lit maps the runId property to the attribute "runid", so the documented
run-id attribute had no effect. It now maps to run-id, which the docs'
HTML example already uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A second copy of the module (e.g. from a second bundle) made
customElements.define throw. defineRunOutput() defines the element only
in browsers and only if it isn't defined yet, as the service registry's
services element does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WES 1.1 deprecates inline task_logs in favour of task_logs_url. The
provider gets optional listRunTasks() (GET /runs/{id}/tasks, by page)
and getLog() (service's fetch on its own origin, no credentials
elsewhere, HTTP(S) only). The run component lists tasks by page with
a "Load more tasks" button, shows task ID, system logs and the TES
task, fetches logs through getLog(), and hints at log values that
aren't URLs.

Closes #616

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#614 landed squashed (2254142); this branch carried its pre-squash
commits. The tree is feat/io-schema plus this branch's own changes.
Validator: the outputs schema is compiled once, as validateOutputs,
through the anchor-aware location URIs of #614 (names with '#'),
and the annotation-schema locations of #614 stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Guards the merge with #614: the outputs schema is compiled through the
anchor-aware location URIs, so outputs whose names contain '#' and use
a union validate as a whole and one by one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Split the run-id attribute into its own changeset and say that
  markup using the old runid attribute must switch to run-id.
- Test defineRunOutput() with a spy on customElements.define.
- Say in OutputsValidator what "declared" means (direct properties
  of outputs, as the profile requires) and which rules apply only to
  the whole object.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
uniqueg and others added 6 commits December 5, 2026 22:05
When the run ID or provider changed while a getRunLog() request was
pending and that request answered last, the run view showed the
earlier run (and normalised its outputs). Each request now gets a
number, and only the answer to the latest one is used.

Found by Sourcery on #615.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
Clearing the run ID, or the provider and base URL, returned early
without invalidating a pending getRunLog() request, so its answer
still replaced the cleared view. These paths now invalidate it too.

Found by the adversarial and quality reviews of #615.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
The Run page says that ioSchema, outputOptions, outputProvider and
allowedSchemes have no attributes, what allowedSchemes defaults to,
why the preview adds s3, and that run-id replaces runid.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
A new provider with an empty run ID returned without invalidating a
pending request of the old provider, and without the "no run ID"
error. Found by the second adversarial review of #615.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
Brings this branch onto #615's head (b692f05), which already holds
the squashed #613 and #614, so that the PR into feat/io-schema shows
only the task list once #615 has merged. invalidateRunLog() of #615
now also resets the task list and cached logs, so a cleared run ID
doesn't keep the tasks of the previous run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
Covers the merge resolution that makes invalidateRunLog() reset the
task list and cached logs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
@sourcery-ai

sourcery-ai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Data structures

Define the WES 1.1 task and paginated response types, and update run logs to allow absent inline task logs and a task-list URL.

  • packages/ecc-client-ga4gh-wes/src/providers/wes-provider.ts L39-54, L101-104

API

Extend the provider contract with optional task-listing and log-fetching methods, documenting their credential behavior.

  • packages/ecc-client-ga4gh-wes/src/providers/wes-provider.ts L134-149

Implement paginated task requests and origin-aware, HTTP(S)-only log fetching in the REST provider.

  • packages/ecc-client-ga4gh-wes/src/providers/rest-wes-provider.ts L10, L128-173

Uses of the API

Use the provider contract to load inline or paged tasks, handle retries and stale responses, and fetch logs only for open tasks.

  • packages/ecc-client-ga4gh-wes/src/components/run/run.ts L99-113, L312-356, L719-740 (+5 small edits)

Implementation

Add log-value hints and render task metadata, system logs, and safe TES URI links.

  • packages/ecc-client-ga4gh-wes/src/components/run/run.ts L750-802, L875-879, L887-891

Render task-list loading, empty, error, retry, and pagination states, and track task expansion for on-demand logs.

  • packages/ecc-client-ga4gh-wes/src/components/run/run.ts L924-949, L962-993, L998-1005 (+3 small edits)

UI

Document the Tasks tab and provider methods, types, and credential guidance for task and log retrieval.

  • apps/documentation/pages/docs/wes/components/run.mdx L81-89
  • apps/documentation/pages/docs/wes/providers.mdx L164-179, L245-254, L269-277 (+2 small edits)

Configuration

Record the minor release note, including the task-listing feature and the migration and credential implications.

  • .changeset/wes-run-tasks.md L1-5

Tests

Verify run task rendering, pagination, retries, TES links, log fetching, and stale-result handling.

  • packages/ecc-client-ga4gh-wes/src/components/run/tests/run.test.ts L2-10, L448-765

Verify REST task pagination and log-fetching URL, credential, protocol, and error behavior.

  • packages/ecc-client-ga4gh-wes/src/providers/tests/rest-wes-provider.test.ts L78-185 (+3 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@read-the-docs-community

read-the-docs-community Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

uniqueg and others added 2 commits December 5, 2026 23:25
- getLog() resolves a relative base URL against the page; before,
  new URL() threw and every log failed behind a same-origin proxy.
- Logs of an earlier run or task listing no longer fill the cache
  key (a position) of the current one.
- "Load more tasks" lists one page at a time; a double click listed
  the same page twice.
- Tests for these, a superseded task page, a failed listing and a
  listing without page arguments.
- Docs and changeset name the credential-less fallback for providers
  without getLog(), the optional task_logs, and the redirect caveat
  for custom headers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
WES 1.1's TaskLog has id, system_logs and tes_uri on top of Log, no
tags. The changeset is trimmed to the user-visible points.

Found by the contract review of #618.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
@uniqueg
uniqueg changed the base branch from feat/io-run-output-proposal to feat/io-schema December 5, 2026 22:36
@codecov

codecov Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.73684% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.70%. Comparing base (996177e) to head (e25caa8).

Files with missing lines Patch % Lines
...ges/ecc-client-ga4gh-wes/src/components/run/run.ts 94.06% 13 Missing ⚠️
...lient-ga4gh-wes/src/providers/rest-wes-provider.ts 97.87% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           feat/io-schema     #618      +/-   ##
==================================================
+ Coverage           89.39%   89.70%   +0.30%     
==================================================
  Files                 106      106              
  Lines               38759    39002     +243     
  Branches             3185     3253      +68     
==================================================
+ Hits                34650    34987     +337     
+ Misses               4058     3970      -88     
+ Partials               51       45       -6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

#615 landed on feat/io-schema as squash 996177e, whose tree equals
b692f05, the head merged into this branch before. The conflicts come
from the squash only; the resolution keeps this branch's files, so the
tree is unchanged and the PR's diff narrows to its own changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
@uniqueg
uniqueg marked this pull request as ready for review December 5, 2026 22:56
@uniqueg
uniqueg requested a review from anuragxxd as a code owner December 5, 2026 22:56

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 8 issues

Sourcery assessment

Needs a human reviewer. 8 findings to address first, and log fetching now routes requests through the provider for same-origin URLs, so provider credentials can accompany them; a subclass-added header such as an API key may also survive a cross-origin redirect, exposing it beyond the service. Reverting stops the new fetch behavior, but any credential already sent cannot be recalled.

Blocking findings: packages/ecc-client-ga4gh-wes/src/providers/rest-wes-provider.ts:164, packages/ecc-client-ga4gh-wes/src/components/run/run.ts:910, packages/ecc-client-ga4gh-wes/src/components/run/run.ts:947, packages/ecc-client-ga4gh-wes/src/components/run/run.ts:946, packages/ecc-client-ga4gh-wes/src/components/run/tests/run.test.ts:495, and 3 more


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

From Sourcery's review of #618:

- A failed task listing offers "Try again"; an empty page with a next
  page token still offers "Load more tasks" (both were unreachable).
- A task's logs are fetched when its details are opened, not for
  every task of a page.
- Tests wait for listed tasks rather than the loading placeholder,
  check the second page's tasks, the shown plain-text log and the
  URLs that getLog() fetches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant